home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 282_01 / hod.doc < prev    next >
Text File  |  1989-01-11  |  4KB  |  107 lines

  1. Using the Hodgepodge Machine:
  2.  
  3. You can invoke the Hodgepodge Machine by simply typing
  4.  
  5. HOD
  6.  
  7. on the command line. 
  8.  
  9. However, there are a number of parameters that you may specify. They 
  10. may be in any order. Each is invoked by a letter followed by an 
  11. integer. THERE MUST BE NO SPACE BETWEEN THE LETTER AND THE INTEGER. 
  12.  
  13. Example:
  14.  
  15. HOD A3 B5 G41 M6 I1000
  16.  
  17. The above would do the following:
  18.  
  19. A3 would set k1, the infected cells divisor, to 3.
  20.  
  21. B5 would set k2, the ill cells divisor to 5.
  22.  
  23. G41 would set g, the infection rate, to 41.
  24.  
  25. M6 would set the randomizing rate to 6.
  26.  
  27. I1000 would set i, the initializing rate, to 1000.
  28.  
  29. Under ordinary circumstances you will not want to specify k1, k2, or 
  30. the randomizing rate. These have defaults of 2, 3, and 0, 
  31. respectively and the program will probably give the best results 
  32. with these defaults. 
  33.  
  34. The infection rate, g, is the primary user-adjustment. Also the 
  35. initializing rate may be worth playing with. Values of g much larger 
  36. than about 75 or values of i much larger than about 10000 are 
  37. probably pointless. 
  38.  
  39. The default for g is 25.
  40.  
  41. If i is not specified, all cells are initialized. If i is specified, 
  42. only that number of cells will be initialized. But since the cells 
  43. to be initialized will be selected at random, the actual number may 
  44. be less than i.
  45.  
  46. All the above deals with beginning a new run. The alternatives are 
  47. to resume an old run or to play back a sequence of frames saved from 
  48. a previous run.
  49.  
  50. HOD PHODA
  51.  
  52. The above will cause HOD to playback the sequence in the file named 
  53. HODA.MAT
  54.  
  55. HOD RHODA
  56.  
  57. The above will cause HOD to read in the data file named HODA.DAT and 
  58. continue calculation from there.
  59.  
  60.      ***   -------------------------------------------   ***
  61.  
  62. Commands for use during operation of HOD:
  63.  
  64. # (crosshatch) will cause HOD to toggle movie recording on and off. 
  65. Movies are sequences of frames which can later be viewed in a more 
  66. rapid succession. Please note that movies take up about 4800 bytes 
  67. of disk space per frame. A HARD DISK IS HIGHLY RECOMMENDED IF YOU 
  68. ARE GOING TO RECORD MOVIES. The movie file will have a name with an 
  69. extension of .MAT and a base name of four letters beginning HOD. The 
  70. final letter will be selected so as not to conflict with any other 
  71. file on the same directory. Thus the first movie will be named 
  72. HODA.MAT, the second will be HODB.MAT, etc.
  73.  
  74. $ (dollar sign) allows you to specify the frame number at which 
  75. movie recording will automatically stop. This lets you limit the 
  76. size of movie files without constantly monitoring the program.
  77.  
  78. ^W Writes the present data to a disk file. The file name will be 
  79. created as for movies, except that the extension will be .DAT 
  80. instead of .MAT
  81.  
  82. ^D is the same as above except that the program exits after saving 
  83. the data to a file.
  84.  
  85. ^R reads in the data from a disk file. It has the same effect as 
  86. using the P option on the command line. Data being worked on at the 
  87. time ^R is invoked will be lost, so save your data before pressing 
  88. ^R if you don't want to lose it.
  89.  
  90. ^B toggles screen blanking. You can cause the screen to go blank 
  91. when you want to let the program run for a while without any 
  92. display. Pressing ^B a second time restores the screen display.
  93.  
  94. ^S causes the program to pause so you can look closely at the 
  95. display. Pressing any key resumes operation.
  96.  
  97. ^C terminates the program immediately without saving the present 
  98. data.
  99.  
  100.      ***   -------------------------------------------   ***
  101.  
  102. The Hodgepodge Machine is public domain software from KITTENSOFT.
  103. Written by:
  104. Dan Schechter
  105. Route 1 Box 19
  106. Amenia, North Dakota 58004
  107.